package balgey;

import java.util.Scanner;

public class Dbb {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);

		String edit = "y";
		String answer="";
		String uesrName="";
		String password="";
		int cardNumber=0;
		int max=9999;
		int min=1000;
		boolean isRegister = false;
		boolean isLogin = false;
		int [] lucky = new int[5];
		do {
			System.out.println("******��ӭ���뽱�͸���ϵͳ*********** ");
			System.out.println("\t1.ע��");
			System.out.println("\t2.��¼");
			System.out.println("\t3.�齱");
			System.out.println("*****************************");
			System.out.println("��ѡ��˵���");
			int shooses = input.nextInt();
			switch (shooses) {
			case 1:
				System.out.println("���͸���ϵͳ>ע��");
				System.out.println("����д����ע����Ϣ��");
				System.out.println("�û���");
				 uesrName=input.next(); 
				System.out.println("���룺");
				 password=input.next();
				System.out.println("ע��ɹ�����Ǻ���Ļ�Ա����");
				 cardNumber=input.nextInt();
			    System.out.println("�û���\t"+"\t����\t"+"\t��Ա����");
			 //   System.out.println(userName + "\t" + passWord + "\t" + cardNumber);
				break;
			case 2:
				System.out.println("���͸���ϵͳ>��¼");
				System.out.println("�û���");
				uesrName=input.next();
				System.out.println("���룺");
				password=input.next();
				System.out.println("��Ա���ţ�");
				//int max=9999;
				//int min=1000;
				cardNumber=(int)(Math.random()*(max-min))+min;
			
				break;
			case 3:
				System.out.println("���͸���ϵͳ>�齱");
				cardNumber=(int)(Math.random()*(max-min))+min;
			
				break;
			}
			System.out.println("����?(y/n):");
			 answer = input.next();
			
		} while (answer.equals("y"));
		
		System.out.println("ϵͳ�˳���ллʹ�ã�" );

	}

}
